package error;
public class ExceptionHandle {
    public static void main(String[] args) {
        try {
            System.out.println("try: ");
            error();
            System.out.println("done");
        } catch (Exception e) {
            System.out.println("catch error: ");
            e.printStackTrace();
        }finally{
            System.out.println("finish");
        }
    }

    public static void error() throws Exception {
        throw new CustomException("<Error>");
    }
}
